#include "ecb/benchmarks/cec10/CecProblem.h"
#include "ecb/benchmarks/cec10/CecRandom.h"
namespace ecb {
    namespace cec10 {

        CecProblem::CecProblem(const std::string& id, const std::string& name,
                int dimensions, scalar minimum, scalar maximum, bool minimization,
                int mValue, CecRandom* randomizer)
        : Problem(id, name, dimensions, minimum, maximum, minimization),
        _mValue(mValue), _randomizer(randomizer) { }

        CecProblem::~CecProblem() {
            delete _randomizer;
        }

        void CecProblem::setMValue(int m) {
            this->_mValue = m;
        }

        int CecProblem::mValue() const {
            return this->_mValue;
        }

        void CecProblem::setRandomizer(CecRandom* randomizer) {
            this->_randomizer = randomizer;
        }

        CecRandom* CecProblem::randomizer() const {
            return this->_randomizer;
        }
    }

}
